<ion-view view-title="照相机">
    <ion-content>
        <div class="list">
            <div class="item">
                <button class="button button-block button-outline button-royal button-icon" ng-click="$ctrl.capture()">
                    <i class="icon ion-camera"></i>
                </button>
            </div>
            <div class="item">
                <img ng-src="{{$ctrl.img}}" class="full-image">
            </div>
            <div class="item item-body">
                {{$ctrl.img|json}}
            </div>
            <div class="item item-divider item-calm">
                常用配置
            </div>
            <div class="item item-divider">
                照片质量: {{$ctrl.options.quality}}
            </div>
            <div class="item range">
                <input type="range" ng-model="$ctrl.options.quality" name="volume" min="0" max="100">
            </div>
            <div class="item item-divider">
                照片返回类型: {{$ctrl.options.destinationType}}
            </div>
            <ion-radio name="destinationType" ng-model="$ctrl.options.destinationType" value="0">DATA_URL</ion-radio>
            <ion-radio name="destinationType" ng-model="$ctrl.options.destinationType" value="1">FILE_URI</ion-radio>
            <ion-radio name="destinationType" ng-model="$ctrl.options.destinationType" value="2">NATIVE_URI</ion-radio>
            <div class="item item-divider">
                获取照片方式: {{$ctrl.options.sourceType}}
            </div>
            <ion-radio name="sourceType" ng-model="$ctrl.options.sourceType" value="0">PHOTOLIBRARY</ion-radio>
            <ion-radio name="sourceType" ng-model="$ctrl.options.sourceType" value="1">CAMERA</ion-radio>
            <ion-radio name="sourceType" ng-model="$ctrl.options.sourceType" value="2">SAVEDPHOTOALBUM</ion-radio>
            <ion-toggle ng-model="$ctrl.options.allowEdit" toggle-class="toggle-calm">是否允许修改</ion-toggle>
            <div class="item item-divider">
                照片类型: {{$ctrl.options.encodingType}}
            </div>
            <ion-radio name="encodingType" ng-model="$ctrl.options.encodingType" value="0">JPEG</ion-radio>
            <ion-radio name="encodingType" ng-model="$ctrl.options.encodingType" value="1">PNG</ion-radio>
            <ion-toggle ng-model="$ctrl.options.saveToPhotoAlbum" toggle-class="toggle-calm">照片保存在相册中</ion-toggle>
            <div class="item item-divider">
                使用 前置&后置 摄像头: {{$ctrl.options.cameraDirection}}
            </div>
            <ion-radio name="cameraDirection" ng-model="$ctrl.options.cameraDirection" value="0">BACK</ion-radio>
            <ion-radio name="cameraDirection" ng-model="$ctrl.options.cameraDirection" value="1">FRONT</ion-radio>
        </div>
    </ion-content>
</ion-view>